﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="OpenManageRoleBrandMapping.ascx.vb" Inherits="WebForm_ManageRole_OpenManageBrandMapping" %>


<asp:Panel ID="panel1" runat="server" BackColor="white" BorderWidth="1" Style="cursor: move;
    display: none" Width="600" Height="500">
    <br />
    <div align="center">
        <asp:Label ID="lblTitle" runat="server" Text="<%$ Resources:Title %>" SkinID="title"></asp:Label>
    </div>
    <table width="100%">
        <tr>
            <td>
                <My:MyGridView ID="gv" runat="server" AllowHoverEffect="True"
                    AllowHoverSelect="True" TotalRowCount="0" AutoGenerateColumns="False"
                    SkinID="pager" DataKeyNames="Division,Brand" >
                    <Columns>
                        <asp:BoundField DataField="Division" HeaderText="<%$ Resources:Division %>"
                            SortExpression="Division" />
                        <asp:BoundField DataField="SignatureText" HeaderText="<%$ Resources:Signature %>"
                            SortExpression="SignatureText" />
                        <asp:TemplateField HeaderText="<%$ Resources:CanAccess %>">
                            <ItemTemplate>
                                <asp:CheckBox ID="chkSelect" runat="server" Checked='<%# BooleanConverter(Eval("CanAccess")) %>'
                                    OnCheckedChanged="chkSelect_CheckedChanged" AutoPostBack="True" />
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" />
                            <HeaderStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                    </Columns>
                </My:MyGridView>
            </td>
        </tr>
    </table>
    <div align="center">
        <asp:Button ID="btnOK" Visible="false" runat="server" Text="<%$ Resources:OK %>" />
        <asp:Button ID="btnCancel" runat="server" Text="<%$ Resources:Cancel %>" />
    </div>
</asp:Panel>

<asp:Button ID="btnDummy" runat="server" SkinID="null" Style="display: none" />
<ajaxToolkit:ModalPopupExtender ID="mpSearch" runat="server"  CancelControlID="btnCancel"
    PopupControlID="panel1" PopupDragHandleControlID="panel1" TargetControlID="btnDummy" />
